package Solar;

import java.awt.Graphics;
import java.awt.Image;

import Util.GameUtil;
import Util.MyFrame;

public class SolarFrame extends MyFrame{
 
	Star sun=new Star("images/sun.jpg", 300, 300);
	Image ground=GameUtil.getImage("images/ground.jpg");
	plants moon=new plants("images/moon.jpg", 200, 100, 0.1, sun);
	plants huoxing =new plants("images/huoxing.jpg", 400, 200, 0.2, sun);
	//plants moon=new plants("images/moon.jpg", 400, 300);
	public void paint(Graphics g) {
		
		g.drawImage(ground, 0, 0, null);
		sun.draw(g);
		moon.draw(g);
		huoxing.draw(g);
		
		
		
	}
	
	public static void main(String[] args) {
		SolarFrame sFrame=new SolarFrame();
		sFrame.printFrame();
	}
}
